<template>
	<view class="warp">
		<view class="navBtn">
			<view class="navItem bg_blue" @click="exportShow=true">
				<text class="iconfont icondaoru"></text>
				<view class="text">导入计划</view>	
			</view>
		</view>
		<view class="list">
			<view class="item">
				<view class="title">
					计划名称
				</view>
				<view class="content c666">
					计划名称：这边是计划简介
				</view>
				<view class="info u-flex c999">
					<view>李队</view>
					<view class="u-flex-1 u-text-right">2020-12-12</view>
				</view>
				<view class="btnBox u-text-right">
					<u-button type="warning" size="mini">生成签到表</u-button>
					<u-button type="warning" size="mini" @click="openPage('pages/workbench/trainmode/trainPlan/enter')">成绩录入</u-button>
					<u-button type="warning" size="mini" @click="openPage('pages/workbench/trainmode/trainPlan/result')">成绩查询</u-button>
					<u-button type="success" size="mini">审核</u-button>
					<u-button type="primary" size="mini" @click="openPage('pages/workbench/trainmode/trainPlan/planDetail')">变更</u-button>
				</view>
			</view>
		</view>
		<u-popup v-model="exportShow" mode="bottom">
			<view class="pop-content">
				<u-upload :action="action" width="160" height="160" :file-list="fileList" :auto-upload="false"></u-upload>
				<u-button @click="submit" type="success">提交</u-button>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '会议管理',
				background: { backgroundColor: '#0251b6' },
				backIconName: 'nav-back',
				right: false,
				isBack: true,
				isFixed: true,
				exportShow:false,
				action:"",
				fileList:[],
			};
		},
		methods:{
			//页面跳转
			openPage(url) {
				this.$u.route({
					url: url
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
page{
	background: #f8f8f8;
}
.u-search{
	padding: 20rpx;
}
.navBtn{
	padding:20rpx 0;
	.navItem{
		display: inline-block;
		margin-left:20rpx;
		border-radius:0.3em;
		height:140rpx;
		width: 140rpx;
		color:#fff;
		text-align: center;
		line-height: 1.5;
		padding-top:20rpx;
		&.bg_red{
			background: #FA3534;
		}
		&.bg_green{
			background: #19BE6B;
		}
		&.bg_blue{
			background: #2979FF;
		}
		.iconfont{
			margin:20rpx 20rpx 10rpx;
			font-size:50rpx;
			
		}
		.text{
			padding:0 10rpx 10rpx;
			font-size:20rpx;
		}
	}
}
.list{
	padding:0 20rpx;
	.item{
		border-radius:0.3em;
		margin-bottom:20rpx;
		background: #ffff;
		padding:20rpx;
		.title{
			margin-bottom:20rpx;
		}
		.info{
			padding:20rpx 0;
			font-size: 20rpx;
		}
		.btnBox{
			border-top:1px solid #d9d9d9;
			padding-top:20rpx;
			button{
				margin-left:20rpx;
			}
		}
	}
	.c999{
		color:#999;
	}
	.c666{
		color:#666;
	}
}
.pop-content{
	padding:20rpx;
	button{
		margin-top:20rpx;
	}
}
</style>
